package com.syh.bishe.config;

/**
 * @author syh 86187
 * @date 2024/7/10
 * com.syh.bishe.config
 * @description
 */
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Configuration
public class AppConfig {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
    @Bean
    public ExecutorService auctionExecutor() {
        return Executors.newFixedThreadPool(10); // 创建包含10个线程的线程池
    }
}

